home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / dbus-1 / system.d / avahi-dbus.conf next >
Text File  |  2008-07-27  |  934b  |  28 lines

  1. <!DOCTYPE busconfig PUBLIC
  2.  "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  3.  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
  4. <busconfig>
  5.  
  6.   <!-- Only root or user avahi can own the Avahi service -->
  7.   <policy user="avahi">
  8.     <allow own="org.freedesktop.Avahi"/>
  9.   </policy>
  10.   <policy user="root">
  11.     <allow own="org.freedesktop.Avahi"/>
  12.   </policy>
  13.  
  14.   <!-- Allow anyone to invoke methods on Avahi server, except SetHostName -->
  15.   <policy context="default">
  16.     <allow send_destination="org.freedesktop.Avahi"/>
  17.     <allow receive_sender="org.freedesktop.Avahi"/>
  18.  
  19.     <deny send_interface="org.freedesktop.Avahi.Server" send_member="SetHostName"/>
  20.   </policy>
  21.  
  22.   <!-- Allow everything, including access to SetHostName to users of the group "netdev" -->
  23.   <policy group="netdev">
  24.     <allow send_destination="org.freedesktop.Avahi"/>
  25.     <allow receive_sender="org.freedesktop.Avahi"/>
  26.   </policy>
  27. </busconfig>
  28.